package com.example.domain.entity;


import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.base.BaseEntity;
import com.example.common.excel.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_login_log")
public class LoginLog extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ExcelProperty("用户名")
    @ColumnWidth(15)
    private String username;

    @ExcelProperty("登录IP")
    @ColumnWidth(15)
    private String ip;

    @ExcelProperty("登录地点")
    @ColumnWidth(20)
    private String location;

    @ExcelProperty("浏览器")
    @ColumnWidth(15)
    private String browser;

    @ExcelProperty("操作系统")
    @ColumnWidth(15)
    private String os;

    @ExcelProperty("登录状态")
    @ColumnWidth(10)
    private String status;

    @ExcelProperty("提示消息")
    @ColumnWidth(30)
    private String message;

    @ExcelProperty("登录时间")
    @ColumnWidth(20)
    private LocalDateTime createTime;
} 